package com.onesatoshi.mm;

import java.util.Arrays;
import java.util.List;

/**
 * 保存全局变量
 */
public class Config {

    /**
     * 是否打开自动抢红包
     */
    public static final int MASK_AUTO_OPEN_LUCKY_MONEY = 0x01;

    /**
     * 是否打开自动添加附近的人
     */
    public static final int MASK_AUTO_ADD_NEARBY = 0x01 << 1;

    /**
     * 是否打开自动通讯录
     */
    public static final int MASK_AUTO_ADD_PHONEBOOK = 0x01 << 2;

    /**
     * 是否打开自动添加客户
     */
    public static final int MASK_AUTO_ADD_CUSTOMER = 0x01 << 3;

    /**
     * 是否自动点赞
     */
    public static final int MASK_AUTO_SNS_PRIZE = 0x01 << 4;

    /**
     * 自动添加群好友
     */
    public static final int MASK_AUTO_ACCEPT_FRIEND_ADD_2GROUP = 0x01 << 5;

    /**
     * 自动发布朋友圈
     */
    public static final int MASK_AUTO_POST_SNS = 0x01 << 6;

    /**
     * 是否打开自动回复
     */
    public static final int MASK_AUTO_REPLY = 0x01 << 7;

    /**
     * 是否打开自动抓取群信息
     */
    public static final int MASK_AUTO_CRAWL_GROUPMSG = 0x01 << 8;


    public static int taskMask = 0;

    public static final int MASK_DEFAULT = 0x00;

    // 服务器地址
    public static final String SERVER_URL = "http:\\/\\/123.57.52.172:9010";

    // 查询handler执行周期
    public static long QUERY_RUNNABLE_PERIOD = 2 * 60 * 1000;

    // 推送handler执行周期
    public static long PUSH_RUNNABLE_PERIOD = 30 * 1000;

    // query handler启动延时
    public static long RUNNABLE_DELAY = 30 * 1000;

    // 添加用户handler执行周期
    public static long ADD_CUSTOMER_RUNNABLE_PERIOD = 2 * 60 * 1000;

    // 发朋友圈handler执行周期
    public static long POST_SNS_RUNNABLE_PERIOD = 30 * 60 * 1000;

    // 微信应用双开
    public static int DOUBLE_WEIXIN_CHOOSE = 0;

    // 操作频繁等待时间
    public static long FREQUENT_WAIT_MILLSEC = 3600 * 1000;

    public static final String SNS_URL_KEY = "postsnsurl";
    public static final String SNS_CONTENT_KEY = "snscontent";

    public static final String CONFIG_AVAILABLE_STATUS = "1";

    // 朋友圈状态
    public static final String SNS_AVAILABLE_STATUS = "1";
    public static final String SNS_DONE_STATUS = "2";

    // user status
    public static final String USER_AVAILABLE_STATUS = "0";
    public static final String USER_ADDED_STATUS = "1";
    public static final String USER_EMPTY_STATUS = "2";

    // event between
    public static  final long EVENT_BETWEEN_MILLSEC_MAX = 60*1000;

    // add user and post sns work time
    public static  int ADD_USER_START_HOUR = 8;
    public static  int ADD_USER_STOP_HOUR = 21;
    public static  int POST_SNS_START_HOUR = 8;
    public static  int POST_SNS_STOP_HOUR = 21;

}